using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Easy.Geo.Kml
{
    public class Data
    {
        public Data()
        {
        }

        public Data(string name, string value)
        {
            this._name = name;            
            this._value = value;
        }
        public Data(string name, string displayName, string value)
            : this(name,value)
        {            
            this._displayName = displayName;            
        }
        private string _name;
        [XmlAttribute(AttributeName="name")]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private string _displayName;
        [XmlElement(ElementName="displayName")]
        public string DisplayName
        {
            get { return _displayName; }
            set { _displayName = value; }
        }
        private string _value;
        [XmlElement(ElementName = "value")]
        public string Value
        {
            get { return _value; }
            set { _value = value; }
        }
    }
}
